/*
 * @Author: libing 9852442+liu-sheng-8667@user.noreply.gitee.com
 * @Date: 2024-05-22 21:29:31
 * @LastEditors: xuezhuangzhuang xzz6996@qq.com
 * @LastEditTime: 2025-01-06 21:15:03
 * @FilePath: \crm\apis\user.js
 * @Description:
 */
import { service } from "@/config/request";

// 登录接口
export function login(params = {}) {
  return service({ path: "", params });
}

// 获取用户信息
export function getUserInfo(params = {}) {
  return service({
    path: "/admin/user/info",
    method: "get",
    params,
  });
}

// 退出登录
export function logout(params = {}) {
  return service({
    path: "/auth/token/logout",
    method: "delete",
    params,
  });
}

export function password(data = {}) {
  return service({
    path: "/admin/user/personal/password",
    method: "put",
    data,
    params: data,
    contentType: "application/json; charset=UTF-8"
  });
}

// 更改个人信息
export function editInfo(obj) {
	return service({
		path: '/admin/user/personal/edit',
		method: 'put',
		data: obj,
    params: obj,
    contentType: "application/json; charset=UTF-8"
	});
}


export function CRMMyMain(obj) {
	return service({
		path: '/customer/bi/CRMMyMain',
		method: 'get',
    contentType: "application/json; charset=UTF-8"
	});
}
